# Contributor: Magnus Sandin <magnus.sandin@gmail.com>
# Maintainer: Magnus Sandin <magnus.sandin@gmail.com>
pkgname=x42-plugins
pkgver=20230915
pkgrel=0
pkgdesc="Collection of LV2 plugins"
url="https://github.com/x42/x42-plugins"
arch="x86 x86_64 aarch64 riscv64"
license="GPL-2.0-only AND GPL-3.0-only"
subpackages="$pkgname-doc"
depends="
	font-liberation
	"
makedepends="
	cairo-dev
	coreutils
	fftw-dev
	ftgl-dev
	glu-dev
	jack-dev
	libltc-dev
	libsamplerate-dev
	libsndfile-dev
	lv2-dev
	pango-dev
	"
source="https://gareus.org/misc/x42-plugins/x42-plugins-$pkgver.tar.xz"
options="!check" # No tests available

build() {
	FONTFILE=/usr/share/fonts/liberation/LiberationSans-Regular.ttf make
}

package() {
	make install DESTDIR="$pkgdir" PREFIX=/usr
}

sha512sums="
bdc14e9598709c507d1bf4ede9b826ecb9b432c215712d30e0af16f0395f788a476fd1d56d1c1f58d8a5d8849eda9c40d38682e70243ebd323ba484baca4790d  x42-plugins-20230915.tar.xz
"
